<template>
  <div>
      <img :src="$pre+user.avatarurl" alt="">
      <p>昵称：{{user.nickname}}</p>
  </div>
</template>

<script>
export default {
    mounted(){
        this.user = JSON.parse(localStorage.getItem('isLogin'))
    },
    data(){
        return{
            user:{

            }
        }
    }
}
</script>

<style scoped>
    img{
        width: 200px;
        height: 200px;
        border-radius:50% ;
    }
</style>